 var express = require("express");
 var router = express.Router();
//处理学历的路径
 router.get("/",(req,res)=>{
      let data=[{"id":1,"name":"小学"},
                {"id":2,"name":"初中"},
                {"id":3,"name":"高中"},
                {"id":4,"name":"大专"},
                {"id":5,"name":"本科"},
                {"id":6,"name":"研究生"},
                {"id":7,"name":"博士"}]
        //返回结果给客户端
        res.end(JSON.stringify(data));
 })
 module.exports = router;